import http from "@/utils/fetch";

// 我的账户
export function myAccount() {
  return http.post("/Supplier/Account/myAccount");
}
// 获取收款账户信息
export function getPayeeInfo() {
  return http.post("/Supplier/Account/getPayeeInfo");
}
// 申请提现
export function withdrawalApply(amount) {
  return http.post("/Supplier/Withdrawal/withdrawalApply", { amount }, true);
}
// 账户充值
export function recharge(amount) {
  return http.post("/Supplier/Account/recharge", { amount });
}
// 提现详情
export function withdrawalInfo(withdrawal_id) {
  return http.get("/Supplier/Withdrawal/withdrawalInfo", { withdrawal_id });
}
// 扫码结果查询
export function rechargeQuery(rechargeId) {
  return http.post("/Supplier/Account/rechargeQuery", { rechargeId });
}
